<template>
  <div class="demo" v-longpress="aaabbb"   @click="danji">Demo</div>
</template>

<script>
export default {
  name: "Demo",
  data() {
    return {
      userName:"杨标"
    };
  },
  methods: {
    aaabbb(event){
      
      console.log("你长按了")
    },
    danji(){
      console.log("你单击了");
    }
  }
};
</script>

<style scoped>
.demo {
  width: 100%;
  height: 400px;
  background-color: deeppink;
}
</style>